package net.cassite.daf4j.jpa;

import net.cassite.daf4j.Query;

import javax.persistence.EntityManager;

/**
 * JPQLQuery
 */
public class JPQLQuery extends Query {
        private EntityManager entityManager;

        public JPQLQuery(EntityManager manager) {
                super(new JPQLDataSource(manager));
                this.entityManager = manager;
        }

        public EntityManager getEntityManager() {
                return entityManager;
        }
}
